package com.itheima.dao;

import com.github.pagehelper.Page;
import com.itheima.pojo.Menu;
import org.apache.ibatis.annotations.Param;

import java.util.List;

/**
 * @author ：wanghao
 * @date ：Created in 2020/12/6
 * @description ：
 * @version: 1.0
 */
public interface MenuDao {
    public Page<Menu> selectByCondition(String queryString);
    public List<Menu> findOneAll();
    public Integer findOneCount();
    public Integer findTwoCount(Integer parentMenuId);
    public String findPathByParentMenuId(Integer parentMenuId);
    public void add(Menu menu);
    public Menu findById(Integer id);
    public void updateById(Menu menu);
    public Integer findCountByParentMenuId(Integer id);
    public void deleteById(Integer id);
    public List<Menu> findAll();
    public Menu findOneById(Integer menuid);
    public Menu findTwoByIdAndParentId(@Param("mid") Integer menuid1,@Param("pid") Integer id);
}
